package com.aya.simple.push;

import java.util.Observable;
import java.util.Observer;

public class HumidityObservable implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        if(arg instanceof WeatherDto){
            WeatherDto weatherDto = (WeatherDto) arg;
            System.out.println("湿度:"+weatherDto.getHumidity());
        }

    }
}
